package com.woorigil.social.domain.point;

import java.util.Comparator;


public class PointComparator implements Comparator<Pointable> {
	@Override
	public int compare(Pointable p1, Pointable p2) {
		if (p1.getPoint() < p2.getPoint()) {
			return 1;
		} else if (p1.getPoint() > p2.getPoint()) {
			return -1;
		} else {
			return 0;
		}
	}
}
